int x = 0; Int32.TryParse(TextBoxD1.Text, out x);
//lblTemp.Text = "" + Temperature; this statement is not required. if (Convert.ToInt32(Temperature) <= 32) { lblResult.Text = "It is freezing outside!"; }